package client

import "github.com/urfave/cli/v2"

var Network = &cli.Command{
	Name:  "network",
	Usage: "Manage networks",
	Subcommands: cli.Commands{
		&cli.Command{
			Name:  "create",
			Usage: "Create a network",
			Flags: []cli.Flag{
				&cli.StringFlag{
					Name:    "driver",
					Aliases: []string{"d"},
					Usage:   "Driver to manage the Network (default 'bridge')",
				},
				&cli.StringFlag{
					Name:    "subnet",
					Aliases: []string{"s"},
					Usage:   "Subnet in CIDR format that represents a network segment",
				},
			},
			Action: NetworkCreateAction,
		},
		&cli.Command{
			Name:   "rm",
			Usage:  "Remove one or more networks",
			Action: NetworkDeleteAction,
		},
		&cli.Command{
			Name:   "ls",
			Usage:  "List networks",
			Action: NetworkListAction,
		},
	},
}
